#ifndef PLURKAUTHVIEW_H
#define PLURKAUTHVIEW_H

#include <QWebView>
#include <QVBoxLayout>
#include <QStatusBar>
#include <QLabel>

class PlurkAuthView : public QWidget
{
  Q_OBJECT
public:
  explicit PlurkAuthView(QWidget *parent = 0);

signals:
  void authDone(bool success, QString verifier);

public slots:
  void openAuth(const QUrl &url);
  void pageFinished(bool ok);
  void loadProgress(int progress);

private:
  QUrl authInitUrl;
  QWebView webView;
  QLabel statusBar;
  QVBoxLayout layout;
};

#endif // PLURKAUTHVIEW_H
